package cn.zebra.dev.admin.module.delivery.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Collection;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class DeliveryItemVO {
    @ApiModelProperty("首件(个) 或 首重(kg)")
    @NotNull(message = "请输入首件(个) 或 首重(kg)")
    private BigDecimal firstNum;

    @ApiModelProperty("首件运费(或首重运费)")
    @NotNull(message = "请输入首件运费(或首重运费)")
    private BigDecimal firstPrice;

    @ApiModelProperty("续件(个) 或 续重(kg)")
    @NotNull(message = "请输入续件(个) 或 续重(kg)")
    private BigDecimal continuaNum;

    @ApiModelProperty("续件运费(或续重运费)")
    @NotNull(message = "请输入续件运费(或续重运费)")
    private BigDecimal continuaPrice;

    @NotEmpty(message = "请选择城市!")
    private Collection<Long> cityIds;
}
